home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1986 September
/
Ahoy_Magazine_86-09_1986_Double_L.d64
/
Print Maker
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
453b
|
16 lines
0 poke 53280,7:poke 53281,7
1 rem commodares problem #29-1:
2 rem print maker
3 rem solution by
4 rem dan brumbaugh
5 rem
10 input"[147]enter line number";ln$:print"[147]-[157]";
20 get a$:if a$="" then 20
30 a=asc(a$) : if a=34 then 20
40 if a=13 or len(s$)=71-len(ln$)then 60
50 print" [157]"a$"-[157]";:s$=s$+a$:goto 20
60 q$=chr$(34):print"[147]"ln$" print"q$"[147]"s$q$""
70 kbf=631 : ndx=198 :rem assume c-64
80 if ds$<>"" then kbf=842 : ndx=208 :rem must have c-128 instead
90 poke kbf,13 : poke ndx,1 : end